package com.cn.main.framework;

import java.lang.annotation.*;

/**
 * user : chenyuncong
 * create_time : 2022/8/30
 */
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Repeatable(HttpAttribute.HttpAttributes.class)
public @interface HttpAttribute {
    String name();
    String value();


    String SOCKET_TIMEOUT = "http.socket.timeout";
    String CONNECTION_TIMEOUT = "http.connection.timeout";


    @Target({ElementType.TYPE,ElementType.METHOD})
    @Retention(RetentionPolicy.RUNTIME)
    @interface HttpAttributes {
        HttpAttribute[] value();
    }
}
